home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp95 / freyja13.exe / lha / MAKEFILE.MSD < prev    next >
Text File  |  1992-03-22  |  3KB  |  140 lines

  1. # Makefile for Freyja
  2.  
  3. # Uncomment exactly one of the following two sections.  After changing
  4. # which one is commented out, you will have to recompile everything.
  5. # You can ensure this recompilation by doing "erase *.obj" or "touch *.h"
  6.  
  7. # Use these for a regular version
  8.  
  9. COPTS = -f
  10. OBJFILES = calc.obj jaguar.obj
  11. LNKFILE = freyja.lnk
  12. PROGS = freyja.exe
  13.  
  14. # Use these for a system-manager compliant version (must not have
  15. # the calculator, as it uses floating point)
  16.  
  17. #COPTS = -f- -DSYSMGR -DNOCALC -DNOEXEC
  18. #OBJFILES = smjaguar.obj
  19. #LNKFILE = smfreyja.lnk
  20. #PROGS = freyja.exm makeexm.exe
  21.  
  22. # --------------------------------------------------
  23.  
  24. H = freyja.h fgenlib.h
  25. CORE  = buf.obj char.obj date.obj display.obj file.obj flib.obj help.obj ini.obj key.obj misc.obj region.obj table.obj term.obj white.obj word.obj xprintf.obj $(OBJFILES)
  26.  
  27. all:    $(PROGS)
  28.  
  29. # --------------------------------------------------
  30.  
  31. # /v for debugging, /m->/s for detailed symbol table
  32. LOPTS = /c/d/m
  33.  
  34. # -v for debugging
  35. .c.obj:
  36.     tcc $(COPTS) $*
  37.  
  38. .asm.obj:
  39.     tasm $* /mx;
  40.  
  41. # --------------------------------------------------
  42. # The tlink program should generate this warning message:
  43. # "Warning: __stklen defined in module NAME.c is duplicated in module STKLEN"
  44.  
  45. freyja.exe:    freyja.obj $(CORE) libasm.obj
  46.     tlink $(LOPTS) @$(LNKFILE)
  47.  
  48. freyja.obj:    freyja.c $(H)
  49.     tcc -c $(CFLAGS) $(COPTS) -DMAIN freyja.c
  50.  
  51. # --------------------------------------------------
  52. # The tlink program should generate this warning message:
  53. # "Warning: __stklen defined in module NAME.c is duplicated in module STKLEN"
  54.  
  55. makeexm.exe:    makeexm.obj flib.obj xprintf.obj libasm.obj
  56.     tlink $(LOPTS) \lib\c0s makeexm flib xprintf libasm,makeexm,makeexm,\lib\cs
  57.  
  58. makeexm.obj:    makeexm.c fgenlib.h
  59.     tcc -c $(CFLAGS) makeexm.c
  60.  
  61. # --------------------------------------------------
  62. # The tlink program should generate this warning message:
  63. # "Warning: __stklen defined in module NAME.c is duplicated in module STKLEN"
  64.  
  65. freyja.exm:    makeexm.exe c0s.obj freyja.obj $(CORE) libasm.obj
  66.     tlink $(LOPTS) @$(LNKFILE)
  67.     makeexm freyja smfreyja
  68.  
  69. # --------------------------------------------------
  70.  
  71. $(CORE):    $(H)
  72.  
  73. # --------------------------------------------------
  74.  
  75. # Build 5 1/4" MS/DOS diskettes from MS/DOS system
  76.  
  77. distrib:
  78.     touch *.*
  79.     echo "insert disk 1"
  80.     erase a:*.*
  81.     copy makefile.msd    a:
  82.     copy Makefile.unx    a:
  83.     copy README    a:
  84.     copy ascii    a:
  85.     copy buf.c    a:
  86.     copy c0s.asm    a:
  87.     copy calc.c    a:
  88.     copy char.c    a:
  89.     copy date.c    a:
  90.     copy display.c    a:
  91.     copy emacs    a:
  92.     copy fcalc.doc    a:
  93.     copy fcmdlist.doc    a:
  94.     copy fcmdxref.doc    a:
  95.     copy fcopying.doc    a:
  96.     copy ffsf.doc    a:
  97.     copy fgenlib.h    a:
  98.     copy file.c    a:
  99.     copy fleague.doc    a:
  100.     copy flib.c    a:
  101.     copy freyja.c    a:
  102.     copy freyja.doc    a:
  103.     echo "insert disk 2"
  104.     erase a:*.*
  105.     copy freyja.exe    a:
  106.     copy freyja.exm a:
  107.     copy freyja.h    a:
  108.     copy freyja.ini    a:
  109.     copy freyja.lnk    a:
  110.     copy ftutoria.doc    a:
  111.     copy fwarrant.doc    a:
  112.     copy help.c    a:
  113.     copy ini.c    a:
  114.     copy jaguar.c    a:
  115.     copy key.c    a:
  116.     copy libasm.asm    a:
  117.     copy makeexm.c    a:
  118.     copy misc.c    a:
  119.     copy region.c    a:
  120.     copy smfreyja.lnk    a:
  121.     copy smjaguar.c    a:
  122.     copy table.c    a:
  123.     copy term.c    a:
  124.     copy turboc.cfg    a:
  125.     copy white.c    a:
  126.     copy word.c    a:
  127.     copy xprintf.c    a:
  128.     copy xprintf.doc    a:
  129.  
  130. # --------------------------------------------------
  131.  
  132. cleanup:
  133.     -erase *.obj
  134.     -erase *.map
  135.  
  136. cleanall:
  137.     -erase *.obj
  138.     -erase *.map
  139.     -erase $(PROGS)
  140.